package com.trip.api.vo;

import com.trip.api.config.SystemConfig;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author truman
 * @date 2022/8/26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageBean {
    private Integer code;
    private String msg;
    private Long count;
    private List data;

    public PageBean(long count, List data) {
        this.code = SystemConfig.PAGE_OK;
        this.msg = "OK";
        this.count = count;
        this.data = data;
    }
}